package com.hxd.otc.module.login.bean;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * 作  者 :  胡庆岭
 * 时  间 :  2018/5/18 15:18
 * 描  述 :  ${手机地区编码bean}
 */
public class PhoneCodeBean implements Serializable {
    private String abbre;
    private String chineseName;
    private String chinesename;
    private String code;
    private String id;
    private String land;
    private String nationalName;

    private double price;

    private String areaCode;
    private String nameCn;
    private String nameEn;
    private String sort;
    private String status;

    public String getAbbre() {
        return abbre;
    }

    public void setAbbre(String abbre) {
        this.abbre = abbre;
    }

    public String getChineseName() {
        if (!TextUtils.isEmpty(chineseName)) {
            return chineseName;
        } else if (!TextUtils.isEmpty(nameCn)) {
            return nameCn;
        }
        return "";
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getChinesename() {
        return chinesename;
    }

    public void setChinesename(String chinesename) {
        this.chinesename = chinesename;
    }

    public String getCode() {
        if (!TextUtils.isEmpty(code)) {
            return code;
        } else if (!TextUtils.isEmpty(areaCode)) {
            return areaCode;
        }

        return "86";
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLand() {
        return land;
    }

    public void setLand(String land) {
        this.land = land;
    }

    public String getNationalName() {
        return nationalName;
    }

    public void setNationalName(String nationalName) {
        this.nationalName = nationalName;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "PhoneCodeBean{" +
                "abbre='" + abbre + '\'' +
                ", chineseName='" + chineseName + '\'' +
                ", chinesename='" + chinesename + '\'' +
                ", code='" + code + '\'' +
                ", id='" + id + '\'' +
                ", land='" + land + '\'' +
                ", nationalName='" + nationalName + '\'' +
                ", price=" + price +
                ", areaCode='" + areaCode + '\'' +
                ", nameCn='" + nameCn + '\'' +
                ", nameEn='" + nameEn + '\'' +
                ", sort='" + sort + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
